<!--@foreach($document_list as $document)-->
	<div class="content">
		 <div class="extra autoscroll">
			<div class="date">{$document->getRegdate('Y m.d')}</div>
			<!--@if($document->get('category_srl'))-->
				<div class="category"><a href="{getUrl('category',$document->get('category_srl'),'document_srl','','cpage','')}">{$category_list[$document->get('category_srl')]->title}</a></div>
			<!--@end-->
			<div class="author">{$document->getNickName()}</div>
			<div class="edit"><a href="{getSiteUrl($textyle->domain,'document_srl',$document->document_srl,'act','dispTextyleToolPostManageWrite')}" class="editPost"><img src="img/icon_pen.png" alt="Edit" /></a></div>
		 </div>

		 <!--#include('setting_get_thumbnail.html')-->

		 <!--@if(count($thumbnailList) > 0)-->            
			 <div class="postThumbnail">
				<ul>
				{@ $i = 0; }
				<!--@foreach($thumbnailList as $thumbnail)-->
					{@ $i ++; }
					<li class="postThumbnailItem postThumbnailItem_{$i}">
						<img src="{$thumbnail}" class="thumbnail" alt="" <!--@if($thumbnail_auto_resize)-->width="{$full_width}"<!--@end--> />
					</li>
				<!--@end-->
				</ul>
			</div>
		 <!--@end-->
		
		<div class="postWrap">
			<!--@if($share)-->
				<div class="share"><a href="#" title="트위터에 공유하기" onclick="return sendTwitter(this,'{getFullSiteUrl() . $document->document_srl}');"><img src="img/twitter.png" alt="twitter" /></a> <a href="#" title="페이스북에 공유하기" onclick="return sendFacebook(this,'{getFullSiteUrl() . $document->document_srl}');"><img src="img/facebook.png" alt="facebook" /></a></div>
			<!--@end-->
				<h2 class="postTitle"><a href="{getUrl('document_srl',$document->document_srl,'cpage','')}">{$document->getTitle()}</a></h2>
				
				<div class="textyleContent xe_content">
					{$post_prefix}
					{$document->getContent(false)} 
					{$post_suffix}
				</div>

				{@$tag_list = $document->get('tag_list');}
				<!--@if(count($tag_list))-->
				<dl class="usedTag">
					<dt>태그 :</dt>
					<dd>
						<!--@for($i=0,$c=count($tag_list);$i<$c;$i++)-->
						<a href="{getUrl('search_target','tag','search_keyword',$tag_list[$i],'document_srl','')}" rel="tag">{htmlspecialchars($tag_list[$i])}</a>
						<!--@if($i<$c-1)-->
						,&nbsp;
						<!--@end-->
						<!--@end-->
					</dd>
				</dl>
				<!--@end-->
			<div class="clear"></div>
		</div> <!-- postWrap -->

<!--@if(!$simple_mode)-->
		<!--@if($document->allowTrackback() || $document->getTrackbackCount())-->
		<div id="trackback_wrap_{$document->document_srl}" class="trackback_wrap">
			<div class="feedback trackback">
				<a name="trackback"></a>
				<h3 class="feedbackTitle">{$document->getTrackbackCount()}개의 엮인글</h3>
				<!--@if($document->allowTrackback())-->
				<dl class="trackbackURL">
					<dt>{$lang->trackback_url}</dt>
					<dd><a href="{textyleModel::getTrackbackUrl($textyle->domain,$document->document_srl)}" onclick="return false">{textyleModel::getTrackbackUrl($textyle->domain,$document->document_srl)}</a></dd>
				</dl>
				<!--@end-->
				<!--@if($document->getTrackbackCount())-->
				<ol class="feedbackOrder">
					<!--@foreach($document->getTrackbacks() as $key => $val)-->
					<li class="item">
						<a name="trackback_{$val->trackback_srl}"></a>
						<div class="meta">
							<h4 class="title">{htmlspecialchars($val->blog_name)}</h4>
							<p class="date">{zdate($val->regdate, "Y.m.d")} <span class="hhmm">{zdate($val->regdate, "H:i")}</span></p>
						</div>
						<div class="data textyleContent">
							<h4 class="trackbackTitle"><a href="{$val->url}">{htmlspecialchars($val->title)}</a></h4>
							{$val->excerpt}
						</div>
					</li>
					<!--@end-->
				</ol>
				<!--@end-->
			</div>	
		</div>
		<!--@end-->
	
		<!--@if($document->allowComment())-->
		<div id="trackback_wrap_{$document->document_srl}" class="comment_wrap">
			<div class="feedback reply">
				<a name="comment"></a>
				<h3 class="feedbackTitle">{$document->getCommentCount()}개의 댓글</h3>
				<!--@if($document->getCommentCount())-->
				<ol class="feedbackOrder">
					{@ $_comment_list = $document->getComments() }
					<!--@foreach($_comment_list as $key => $comment)-->
					<li class="item<!--@if($comment->get('depth'))--> indent indent{$comment->get('depth')}<!--@end-->">
						<div class="meta">
							<div class="thumb">
								<!--@if($comment->getProfileImage())-->
									<img src="{$comment->getProfileImage()}" alt="author" />
								<!--@else-->
									<img src="img/icon_author_no_image.gif" width="39" height="39" alt="Author" />
								<!--@end-->
							</div>
							<h4 class="author">
								<!--@if($comment->homepage)-->
								<a href="{$comment->homepage}" onclick="window.open(this.href);return false;" class="member_{$comment->member_srl}">{$comment->getNickName()}</a>
								<!--@else-->
								<span class="member_{$comment->member_srl}">{$comment->getNickName()}</span>
								<!--@end-->
							</h4>
							<p class="date">{$comment->getRegdate('Y.m.d')} <span class="hhmm">{$comment->getRegdate('H:i')}</span></p>
							<p class="ipAddress">{$comment->getIpaddress()}</p>
						</div>
						<div class="data textyleContent">
							<a name="comment_{$comment->comment_srl}"></a>
							<!--@if($comment->isAccessible())-->
							{$comment->getContent(false)}
							<!--@else-->
							<form action="./" method="get" onsubmit="return procFilter(this, input_password)" class="pwForm active">
								<input type="hidden" name="mid" value="{$mid}" />
								<input type="hidden" name="page" value="{$page}" />
								<input type="hidden" name="document_srl" value="{$comment->get('document_srl')}" />
								<input type="hidden" name="comment_srl" value="{$comment->get('comment_srl')}" />

								<label for="readPw">{$lang->password} : </label> <input name="password" type="password" class="inputText" id="readPw" value="" /><input name="" type="submit" value="{$lang->cmd_confirm}" class="submit" />
							</form>
							<!--@end-->

							<!--@if(!$comment->member_srl)-->
							<form action="" method="post" class="modifyPw pwForm comment{$key}" onsubmit="return checkPasswordForModifyComment(this)">
								<input type="hidden" name="mid" value="{$mid}" />
								<input type="hidden" name="page" value="{$page}" />
								<input type="hidden" name="document_srl" value="{$comment->get('document_srl')}" />
								<input type="hidden" name="comment_srl" value="{$comment->get('comment_srl')}" />

								<label for="modifyPw">{$lang->password} : </label> <input name="password" type="password" class="inputText" id="modifyPw" value="" /><input name="" type="submit" value="{$lang->cmd_confirm}" class="submit" />
							</form>
							<form action="" method="post" class="deletePw pwForm comment{$key}" onsubmit="return checkPasswordForDeleteComment(this)">
								<input type="hidden" name="mid" value="{$mid}" />
								<input type="hidden" name="page" value="{$page}" />
								<input type="hidden" name="document_srl" value="{$comment->get('document_srl')}" />
								<input type="hidden" name="comment_srl" value="{$comment->get('comment_srl')}" />

								<label for="deletePw">{$lang->password} : </label> <input name="password" type="password" class="inputText" id="deletePw" value="" /><input name="" type="submit" value="{$lang->cmd_confirm}" class="submit" />
							</form>
							<!--@end-->
							<ul class="reAction">

							<!--@if($comment->isAccessible())-->

								<!--@if($textyle->isEnableComment())--><li><a href="{getUrl('','mid',$mid,'comment_srl',$comment->comment_srl,'document_srl',$document->document_srl,'act','dispTextyleCommentReply')}">{$lang->cmd_reply}</a></li><!--@end-->
								<!--@if($comment->member_srl)-->

									<!--@if($comment->isGranted() || $comment->member_srl==$logged_info->member_srl)-->
									<li><a href="{getUrl('','mid',$mid,'comment_srl',$comment->comment_srl,'document_srl',$document->document_srl,'act','dispTextyleCommentModify')}">{$lang->cmd_modify}</a></li>
									<li><span class="sep">|</span><button type="button" onclick="if(confirm('{$lang->confirm_delete}')) deleteCommentItem({$comment->comment_srl});">{$lang->cmd_delete}</button></li>
										<!--@elseif($logged_info->is_site_admin)-->
										<li><button type="button" onclick="if(confirm('{$lang->confirm_delete}')) deleteCommentItem({$comment->comment_srl});">{$lang->cmd_delete}</button></li>
									<!--@end-->
								<!--@else-->
									<!--@if($logged_info->is_site_admin)-->
									<li><button type="button" onclick="if(confirm('{$lang->confirm_delete}')) deleteCommentItem({$comment->comment_srl});">{$lang->cmd_delete}</button></li>
									<!--@else-->
									<li><button type="button" onclick="jQuery('.comment{$key}').removeClass('active');jQuery('.modifyPw.comment{$key}').addClass('active')">{$lang->cmd_modify}</button></li>
									<li><button type="button" onclick="jQuery('.comment{$key}').removeClass('active');jQuery('.deletePw.comment{$key}').addClass('active')">{$lang->cmd_delete}</button></li>
									<!--@end-->
								<!--@end-->
							<!--@end-->
							</ul>
						</div>
					</li>
					<!--@end-->
				</ol>
				<!--@end-->
			</div>
			<!--@if($document->comment_page_navigation)-->
			<div class="pagination paginationNum">
				<a href="{getUrl('cpage',1)}#comment" class="prev"><span>{$lang->first_page}</span></a>
				<!--@while($page_no = $document->comment_page_navigation->getNextPage())-->
				<!--@if($cpage == $page_no)-->
				<strong>{$page_no}</strong>
				<!--@else-->
				<a href="{getUrl('cpage',$page_no)}#comment">{$page_no}</a>
				<!--@end-->
				<!--@end-->
				<a href="{getUrl('cpage',$document->comment_page_navigation->last_page)}#comment" class="next"><span>{$lang->last_page}</span></a>
			</div>
			<!--@end-->

			<div class="replyForm">
				<!--@if($textyle->isEnableComment())-->
				<fieldset>
					<form method="post" onsubmit="return insertCommentItem(this, insert_comment)" action="">
						<input name="mid" type="hidden" value="{$mid}" />
						<input type="hidden" name="document_srl" value="{$document->document_srl}" />
						<input type="hidden" name="comment_srl" value="" />
						<input type="hidden" name="content" value="" />
						{$document->getCommentEditor()}
						<!--@if($is_logged)-->
						<div class="info1">
							<span class="member_{$logged_info->member_srl}"><strong class="name">{$logged_info->nick_name}</strong></span> <span class="email">{$logged_info->email_address}</span> <span class="url">{$logged_info->homepage}</span>
						</div>
						<!--@else-->
						<div class="info1">
							<input name="nick_name" type="text" class="inputText name" value="Name" title="이름"/>
							<input name="password" type="password" class="inputText pw" value="Password" title="비밀번호" />
						</div>
						<div class="info2">
							<!--@if($textyle->getInputEmail()!='N')-->
								<input type="hidden" name="msg_input_email_address" value="{$lang->msg_input_email_address}"/>
								<input name="email_address" type="text" class="inputText email<!--@if($textyle->getInputEmail()=='R')--> request<!--@end-->" value="Email address" title="이메일 주소" />
							<!--@end-->
							<!--@if($textyle->getInputWebsite()!='N')-->
								<input type="hidden" name="msg_input_homepage" value="{$lang->msg_input_homepage}"/>
								<input name="homepage" type="text" class="inputText url<!--@if($textyle->getInputWebsite()=='R')--> request<!--@end-->" value="URL" title="URL" />
							<!--@end-->
						</div>
						<!--@end-->
						<div class="info3">
							<input name="is_secret" id="secret1" type="checkbox" value="Y" class="inputCheck" />
							<label for="secret1">{$lang->secret}</label>
						</div>
						<div class="clear"></div>
						<input name="submit" type="submit" value="등록" class="inputSubmit" />
					</form>
				</fieldset>
				<!--@else-->
				<p>{$lang->disable_comment}</p>
				<!--@end-->
			</div>
		</div>
		<!--@end-->
<!--@end-->
			
		<!--@if($prev_document || $next_document)-->
		<div class="pagination">
			<!--@if($prev_document)-->
				<span class="prev">이전 : <a href="{getUrl('document_srl',$prev_document->document_srl)}" class="prev">{$prev_document->getTitle()}</a></span>
			<!--@end-->
			<!--@if($next_document)-->
				<span class="next">다음 : <a href="{getUrl('document_srl',$next_document->document_srl)}" class="next">{$next_document->getTitle()}</a></span>
			<!--@end-->
		</div>
		<!--@end-->
	</div> <!-- content -->
<!--@end-->